#!bin/bash

cd "3rdparty"

LOG_LIB_DIR="./spdlog"
cd $LOG_LIB_DIR && cmake . && make && cd ..

TEST_REPO_DIR="./catch2"
cd $TEST_REPO_DIR
if [ ! -d "build" ]; then
    mkdir "build"
    echo "creat build"
else
    echo "build exists"
fi
cd "build" && cmake .. && make && cd ..
cd "build" && cmake .. && make && sudo make install && cd ..

echo build 3rdparty done